/*
 * Copyright 2017 Baiyyy
 * @(#)IColdStorageBoxService.java
 */

package com.byyy.ccts.modules.ysjl.service;

import com.byyy.ccts.core.common.service.ICommonService;
import com.byyy.ccts.core.query.data.Queryable;
import com.byyy.ccts.core.query.wrapper.EntityWrapper;
import com.byyy.ccts.modules.ysjl.entity.YsjlUser;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by DELL on 2018-6-13.
 */
public interface IYsjlUserService extends ICommonService<YsjlUser> {

    com.byyy.ccts.core.query.data.Page<YsjlUser> pageUserList(Queryable queryable, EntityWrapper<YsjlUser> wrapper);

    /** 通过微信小程序获取的code，后台访问微信API获取用户openid作为唯一标识 */
    YsjlUser wxAuth(String code);

    /** 上传头像 */
    String uploadPic(HttpServletRequest request, MultipartFile file);

    /** 注册 */
    YsjlUser register(YsjlUser ysjlUser);

    /** 根据名称查询用户(仅限admin) */
    YsjlUser queryByName(String name);

    YsjlUser userInfo(String id);

    String submit(YsjlUser ysjlUser);

    List<YsjlUser> queryVipOverUser();
}
